package com.lyw.list;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;

@Slf4j
@Component
public class MyLinkedList {

    public void run(){
        ArrayList list = new ArrayList();
        list.add(1);
        list.add("s");
        log.info("*********** MyList ********** ListSize : {}",list.size());

        List linkList = new LinkedList();
        linkList.addAll(list);
        linkList.get(1);
        log.info("*********** MyLinkList ********** List1 : {}",linkList.get(1));


    }
}
